/*
 * @Description: 
 * @Author: Aroma
 * @Date: 2024-09-23 21:01:08
 * @LastEditors: Aroma
 * @LastEditTime: 2024-09-23 21:08:38
 * @别瞎看: 你个无脑牛马
 */
public class Outer3{
    private int num=10;
    
    public void innerFun(){
        final int NUM=20;
        //内部类里的方法调用int类型，默认为常量，常量值不可以更改
        //NUM=300;
        class Inner3{
            private int iNum=30;

            public void innerTest(){
                System.out.println("innerTest,NUM"+NUM);
                System.out.println("innerTest,this.iNum"+this.iNum);
                System.out.println("innerTest,Outer3.this.num"+Outer3.this.num);
            }
        }

        //创建局部内部类的对象
        Inner3 inn3=new Inner3();
        inn3.innerTest();
        System.out.println("Inner3,iNum"+inn3.iNum);
    }
}